
import Login from 'components/Login'
import Dashboard from 'components/pages/Dashboard'
import Home from 'components/Home'



const routes = [
    {
        path:'/',
        redirect:'/dashboard'
    },
    {
        path:'/',
        name:'home',
        component:Home,
        meat:{title:'自述文件'},
        children:[
            {
                path:'/dashboard',
                component:Dashboard,
                meta:{title:'系统首页'}
            },
            {
                path:'/articleList',
                component:resolve=>require(['../components/pages/article/articleList.vue'],resolve),
                meta:{title:'文章列表'}
            },
            {
                path:'/addTag',
                component:resolve=>require(['../components/pages/Tag/AddArticleTag.vue'],resolve),
                meta:{title:'新增分类标签'}
            },
            {
                path:'/tagList',
                component:resolve=>require(['../components/pages/Tag/ArticleTagLists.vue'],resolve),
                meta:{title:'分类标签列表'}
            },
            {
                path:'/editTag',
                component:resolve=>require(['../components/pages/Tag/EditArticleTag.vue'],resolve),
                meta:{title:'编辑标签'}
            },
            {
                path:'/AddArticle',
                component:resolve=>require(['../components/pages/article/AddArticle.vue'],resolve),
                meta:{title:'新增文章'}
            },
            {
                path:'/OssUpload',
                component:resolve=>require(['../components/pages/OSSUpload.vue'],resolve),
                meta:{title:'OSS文件上传'}
            },
            {
                path:'/menuTree',
                component:resolve=>require(['../components/pages/MenuBar.vue'],resolve),
                meta:{title:'OSS文件上传'}
            }
        ]
    },
    {
        path:'/login',
        name:'login',
        component:Login
    }
];

export default routes;
